<template>
	<view :data-theme="themeStyle">
		<view class="container">
			<view class="member-container">
				<view class="user-section ns-gradient-pages-member-index-index"
					:data-theme="defaultInfo.topStyle == 'default' ? themeStyle : ''" :style="defaultBgColor">
					<!-- #ifdef APP-PLUS || APP || MP-WEIXIN -->
					<view class="free"></view>
					<!-- #endif -->
					<view class="bg-img">
						<image :src="defaultBgImg" mode="widthFix"></image>
					</view>
					<view class="user-section-box">
						<view class="user-info-box" v-if="token">
							<view @click="$util.redirectTo('/otherpages/member/info/info')" class="user-head">
								<image :src="
                    memberInfo.headimg
                      ? $util.img(memberInfo.headimg)
                      : $util.getDefaultImage().default_headimg
                  " mode="aspectFill" @error="
                    memberInfo.headimg = $util.getDefaultImage().default_headimg
                  "></image>
							</view>
							<view class="user-box">
								<text class="user-title" :style="defaultTextColor">{{
                  memberInfo.nickname
                }}</text>
								<!-- @click="$util.redirectTo('/otherpages/member/level/level')" class="user-label" -->
								<view v-if="memberInfo.member_level_name || memberInfo.is_shop == 1"
									class="user-label-box">
									<view class="user-label shop" v-if="memberInfo.is_shop == 1">
										<image :src="$util.img('upload/uniapp/xxjk/shop_icon@2x.png')"></image>商家
									</view>
									<view class="user-label" v-if="memberInfo.member_level_name">
										{{ memberInfo.member_level_name }}
									</view>
								</view>
							</view>
						</view>
						<view class="user-info-box no-log" v-if="!token"
							@click="redirectToLink('/pages/member/index/index')">
							<view class="user-head">
								<image :src="$util.getDefaultImage().default_headimg"></image>
							</view>
							<view class="user-box">
								<text class="user-title" :style="defaultTextColor">{{
                  $lang("login")
                }}</text>
								<text class="user-desc" :style="defaultTextColor">{{
                  $lang("loginTpis")
                }}</text>
							</view>
						</view>
						<view @click="redirectToLink('/otherpages/member/info/info')" class="user-set" v-if="token">
							<view :style="defaultTextColor" class="iconfont iconshezhi"></view>
							<!-- 站内信  v-if="token && addonIsExit.sitemessage"-->
							<view @click.stop="
                  redirectToLink('/otherpages/sitemessage/master/master')
                " style="margin-left: 10px" v-if="token && addonIsExit.sitemessage">
								<view :style="defaultTextColor" class="message-icon iconfont iconxinxi"
									style="position: relative">
									<text v-if="perMessageCount > 0"
										class="message-num color-base-bg">{{ perMessageCount }}</text>
									<text v-else-if="perMessageCount > 99" class="color-base-bg message-num">99+</text>
								</view>
							</view>
						</view>
						<view class="member-sction">
							<block v-if="is_audit == 0">
								<view class="sction-item" @click="$util.redirectTo('/plugpages/subsidy/index/index')" v-if="headerOperation.my_integral == true">
									<text class="num" :style="defaultTextColor">{{
                    headInfo.total
                      ? (
                          headInfo.total -
                          headInfo.platform -
                          headInfo.accelerate 
                        ).toFixed(2)
                      : "0"
                  }}</text>
									<text class="sction-item-name" :style="defaultTextColor">我的积分</text>
								</view>
								<view class="line" v-if="headerOperation.trueCount > 1"></view>
								<view class="sction-item" @click="$util.redirectTo('/plugpages/subsidy/index/index')" v-if="headerOperation.platform_subsidies == true">
									<text class="num" :style="defaultTextColor">{{
                    headInfo.platform ? headInfo.platform : "0"
                  }}</text>
									<text class="sction-item-name" :style="defaultTextColor">平台补贴</text>
								</view>
								<view class="line" v-if="headerOperation.trueCount > 2"></view>
								<view class="sction-item" v-if="headerOperation.accelerate_subsidie == true" @click="
                    $util.redirectTo(
                      '/plugpages/subsidy/acceleration_details/acceleration_details'
                    )
                  ">
									<text class="num" :style="defaultTextColor">{{
                    headInfo.accelerate ? headInfo.accelerate : "0"
                  }}</text>
									<text class="sction-item-name" :style="defaultTextColor">加速补贴</text>
								</view>
								<view class="line" v-if="headerOperation.trueCount > 3"></view>
								<view class="sction-item" v-if="headerOperation.consumer_voucher == true" @click="redirectToLink('/otherpages/member/balance/balance')">
									<text class="num" :style="defaultTextColor">{{
                    (
                      parseFloat(memberInfo.balance) +
                      parseFloat(memberInfo.balance_money)
                    ).toFixed(2)
                  }}</text>
									<text class="sction-item-name" :style="defaultTextColor">{{
                    $lang("balance")
                  }}</text>
								</view>
							</block>
						</view>
					</view>
				</view>
				<view class="member-body">
					<!-- 订单模块 -->
					<view class="order-section">
						<view class="order-head" @click="redirectToLink('/pages/order/list/list')">
							<text class="order-tit">我的订单</text>
							<text class="order-tip">全部订单</text>
							<text class="order-more iconfont iconright"></text>
						</view>
						<view class="order-body">
							<view class="order-item" @click="redirectToLink('/pages/order/list/list?status=waitpay')">
								<view class="order-icon">
									<text v-if="orderNum.waitPay > 99" class="order-num color-base-bg">99+</text>
									<text v-else-if="orderNum.waitPay > 0"
										class="order-num color-base-bg">{{ orderNum.waitPay }}</text>
									<image :src="
                      $util.img(
                        'upload/uniapp/member/index/order/default_order_1.png'
                      )
                    " mode="aspectFit"></image>
								</view>
								<text class="order-name">{{ $lang("waitPay") }}</text>
							</view>
							<view class="order-item" @click="
                  redirectToLink('/pages/order/list/list?status=waitsend')
                ">
								<view class="order-icon">
									<text v-if="orderNum.readyDelivery > 99" class="order-num color-base-bg">99+</text>
									<text v-else-if="orderNum.readyDelivery > 0"
										class="order-num color-base-bg">{{ orderNum.readyDelivery }}</text>
									<image :src="
                      $util.img(
                        'upload/uniapp/member/index/order/default_order_2.png'
                      )
                    " mode="aspectFit"></image>
								</view>
								<text class="order-name">{{ $lang("readyDelivery") }}</text>
							</view>
							<view class="order-item" @click="
                  redirectToLink('/pages/order/list/list?status=waitconfirm')
                ">
								<view class="order-icon">
									<text v-if="orderNum.waitDelivery > 99" class="order-num color-base-bg">99+</text>
									<text v-else-if="orderNum.waitDelivery > 0"
										class="order-num color-base-bg">{{ orderNum.waitDelivery }}</text>
									<image :src="
                      $util.img(
                        'upload/uniapp/member/index/order/default_order_3.png'
                      )
                    " mode="aspectFit"></image>
								</view>
								<text class="order-name">{{ $lang("waitDelivery") }}</text>
							</view>
							<view class="order-item" @click="
                  redirectToLink('/pages/order/list/list?status=waitrate')
                ">
								<view class="order-icon">
									<block v-if="evaluateConfig.evaluate_status == 1">
										<text v-if="orderNum.waitEvaluate > 99"
											class="order-num color-base-bg">99+</text>
										<text v-else-if="orderNum.waitEvaluate > 0"
											class="order-num color-base-bg">{{ orderNum.waitEvaluate }}</text>
									</block>
									<image :src="
                      $util.img(
                        'upload/uniapp/member/index/order/default_order_4.png'
                      )
                    " mode="aspectFit"></image>
								</view>
								<text class="order-name">{{ $lang("waitEvaluate") }}</text>
							</view>
							<view class="order-item" @click="redirectToLink('/otherpages/order/activist/activist')">
								<view class="order-icon">
									<text v-if="orderNum.refunding > 99" class="order-num color-base-bg">99+</text>
									<text v-else-if="orderNum.refunding > 0"
										class="order-num color-base-bg">{{ orderNum.refunding }}</text>
									<image :src="
                      $util.img(
                        'upload/uniapp/member/index/order/default_order_5.png'
                      )
                    " mode="aspectFit"></image>
								</view>
								<text class="order-name">{{ $lang("refunding") }}</text>
							</view>
						</view>
					</view>

					<view v-if="defaultInfo.level == 1" class="member-level" :class="{
              'no-default-level':
                defaultInfo.menuStyle != 'palace' &&
                defaultInfo.topStyle != 'default',
            }" @click="jumpLevel()">
						<view class="member">
							<image :src="$util.img('upload/uniapp/member/index/member.png')" mode="aspectFit"></image>
						</view>
						<view class="member-level-box">
							<view class="img-wrap">
								<image class="img-v" :src="$util.img('upload/uniapp/member/index/v.png')"
									mode="aspectFit"></image>
								<text class="font-size-tag" v-if="token">{{
                  memberInfo.member_level_name
                }}</text>
								<text class="font-size-goods-tag" v-else>登录查看权益</text>
							</view>
							<text class="memeber-tit">
								<text class="member-title">会员等级更多权益</text>
								<text class="iconfont iconright font-size-goods-tag"></text>
							</text>
						</view>
					</view>

					<!-- 常用功能模块 -->
					<view class="example-body" v-if="menuList.length > 0">
						<view class="example-head">常用工具</view>
						<view class="list-body">
							<view class="list-item" v-for="(item, index) in menuList" :key="index"
								@click="redirectToLink(item.link.wap_url)">
								<image class="img" :src="$util.img(item.img)"></image>
								<view class="menu-t">{{ item.text }}</view>
							</view>
						</view>
					</view>

					<!-- 商家管理 -->
					<view class="example-body" v-if="manageList.length > 0">
						<view class="example-head">商家管理</view>
						<view class="list-body">
							<view class="list-item" v-for="(item, index) in manageList" :key="index"
								@click="redirectToLink(item.link.wap_url)">
								<image class="img" :src="$util.img(item.img)"></image>
								<view class="menu-t">{{ item.text }}</view>
							</view>
						</view>
					</view>

					<!-- 实用工具 -->
					<view class="example-body" v-if="toolList.length > 0">
						<view class="example-head">实用工具</view>
						<view class="list-body">
							<view class="list-item" v-for="(item, index) in toolList" :key="index"
								@click="redirectToLink(item.link.wap_url)">
								<image class="img" :src="$util.img(item.img)"></image>
								<view class="menu-t">{{ item.text }}</view>
							</view>
						</view>
					</view>
				</view>
				<view class="padding-bottom">
					<ns-copyright></ns-copyright>
				</view>

				<ns-login ref="login"></ns-login>
				<loading-cover ref="loadingCover"></loading-cover>
				<!-- 底部tabBar -->
				<diy-bottom-nav type="shop"></diy-bottom-nav>
			</view>
		</view>
		<to-top v-if="showTop" @toTop="scrollToTopNative()"></to-top>
	</view>
</template>

<script>
	import uniGrid from "@/components/uni-grid/uni-grid.vue";
	import uniGridItem from "@/components/uni-grid-item/uni-grid-item.vue";
	import diyBottomNav from "@/components/diy-bottom-nav/diy-bottom-nav.vue";
	import toTop from "@/components/toTop/toTop.vue";
	import scroll from "@/common/js/scroll-view.js";
	import nsCopyRight from "@/components/ns-copyright/ns-copyright.vue";
	import fenxiaoWords from "common/js/fenxiao-words.js";
	import globalConfig from "@/common/js/golbalConfig.js";

	export default {
		components: {
			uniGrid,
			uniGridItem,
			diyBottomNav,
			toTop,
			nsCopyRight,
		},
		data() {
			return {
				token: "",
				headInfo: {},
				memberInfo: {
					balance: 0,
					balance_money: 0,
					point: 0,
					account5: 0,
					x_value: 0,
				},
				couponNum: 0,
				orderNum: {
					waitPay: 0, //待付款
					readyDelivery: 0, //待发货
					waitDelivery: 0, //待收货
					waitEvaluate: 0, // 待评价
					refunding: 0, // 退款中
				},
				isVerification: true,
				copyrightLoad: 0,
				bottom_info: {},
				authInfo: {
					is_verifier: false,
				},
				perMessageCount: "", //信息数量
				shopTop: false,
				scrollTop: 0,
				shopConfig: null,
				promoterInfo: null,
				withdrawConfig: null,
				fenxiaoBasicsConfig: null,
				defaultInfo: {
					topStyle: "default",
					bgColor: "#ff454f",
					textColor: "#fff",
					bgImg: "",
					menuList: [],
					insertGap: "0",
					menuStyle: "palace",
					level: 1,
				},
				headerOperation:{
					my_integral: false,
					platform_subsidies: false,
					accelerate_subsidie: false,
					consumer_voucher: false,
					trueCount:0,
				},
				signState: 1, // 签到是否开启
				evaluateConfig: {
					evaluate_audit: 1,
					evaluate_show: 0,
					evaluate_status: 1,
				},
				data: [1, 2, 3, 4, 5, 6],
				toolList: [],
				manageList: [],
				menuList: [],
				is_audit: 0,
				h5_code_no: "",
			};
		},
		mixins: [scroll, fenxiaoWords, globalConfig],
		onLoad: function(options) {
			uni.hideTabBar();
			if (this.addonIsExit.memberwithdraw) {
				this.getWithdrawConfig();
			}
			if (this.addonIsExit.fenxiao) {
				this.getFenxiaoBasicsConfig();
			}
			this.getEvaluateConfig();

			if (uni.getStorageSync("userInfo")) {
				this.memberInfo = uni.getStorageSync("userInfo");
			}
			if (options.h5_code_no) {
				uni.setStorageSync("h5_code_no", options.h5_code_no);
			}
			if (options.suid) {
				uni.setStorageSync("suid", data.suid);
			}
			if (uni.getStorageSync("h5_code_no")) {
				this.SendOrderCode();
			}
		},
		computed: {
			storeToken() {
				return this.$store.state.token;
			},
			defaultBgColor() {
				var val = "";
				if (this.defaultInfo.topStyle != "default") {
					val =
						"background:" +
						(this.defaultInfo.bgColor ? this.defaultInfo.bgColor : "transparent");
				}
				return val;
			},
			defaultBgImg() {
				var defaultImg = "";
				if (this.defaultInfo.topStyle != "default") {
					defaultImg = this.defaultInfo.bgImg ?
						this.$util.img(this.defaultInfo.bgImg) :
						"";
				} else {
					defaultImg = this.$util.img("upload/uniapp/member/index/member_bg.png");
				}
				return defaultImg;
			},
			defaultTextColor() {
				var textColor = "";
				if (this.defaultInfo.topStyle != "default") {
					textColor = "color:" + this.defaultInfo.textColor + " !important";
				}
				return textColor;
			},
		},
		watch: {
			storeToken: async function(nVal, oVal) {
				if (this.addonIsExit.membersignin) {
					await this.getSignState();
				}
				await this.getMemberInfo();
				this.getOrderNum();
				this.getCouponNum();

				this.checkIsVerifier();
			},
		},
		async onReady() {
			if (this.addonIsExit.membersignin) {
				await this.getSignState();
			}

			if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
		},
		async onShow() {
			// 刷新多语言
			this.$langConfig.refresh();
			this.getHeaderOperItem();
			this.$store.dispatch("getAddonIsexit").then((data) => {
				if (!data.sitemessage) {
					// this.$util.showToast({
					// 	title: '站内信未开启',
					// 	mask: true
					// });
					// setTimeout(() => {
					// 	this.$util.redirectTo('/pages/index/index/index', {}, 'redirectTo');
					// }, 1000);
				}
			});
			this.getAuditConfig();
			this.token = uni.getStorageSync("token");

			if (uni.getStorageSync("userInfo")) {
				this.memberInfo = uni.getStorageSync("userInfo");
			}
			if (uni.getStorageSync("authInfo")) {
				this.authInfo = uni.getStorageSync("authInfo");
			}

			if (this.token) {
				if (this.addonIsExit.membersignin) {
					await this.getSignState();
				}
				await this.getMemberInfo();
				this.getMemberHerd();
				this.getOrderNum();
				this.getCouponNum();
				this.checkIsVerifier();
				if (this.addonIsExit.sitemessage) {
					this.getPerMessageCount();
				}
				// if (this.addonIsExit.memberwithdraw) {
				// 	this.getWithdrawConfig();
				// }
				// if (this.addonIsExit.fenxiao) {
				// 	this.getFenxiaoBasicsConfig();
				// }
			} else {
				this.initInfo();
			}
			await this.getDefaultInfo();
			this.$forceUpdate();
			//记录分享关系
			if (uni.getStorageSync("token") && uni.getStorageSync("suid")) {
				this.$util.onSourceMember(uni.getStorageSync("suid"));
			}

			if (uni.getStorageSync("h5_code_no")) {
				this.SendOrderCode();
			}
		},
		methods: {
			// 如果有h5_code_no和用户ID,则绑定两者
			SendOrderCode() {
				this.$api.sendRequest({
					url: "/api/shop/Save_collection_order_member",
					data: {
						h5_code_no: uni.getStorageSync("h5_code_no"),
						member_id: this.memberInfo.member_id,
					},
					success: (res) => {
						if (res.code >= 0) {
							uni.setStorageSync("h5_code_no", "");
							uni.showToast({
								title: res.msg,
								icon: "success",
								duration: 3000,
								mask: false,
							});
						}
					},
				});
			},
			getHeaderOperItem(){
				this.$api.sendRequest({
					url: "/api/diyview/gettallystatus",
					success: (res) => {
						if (res.code == 0 && res.data) {
							// this.headInfo = res.data;
							this.headerOperation = res.data;
							this.headerOperation.trueCount = Object.values(this.headerOperation).filter(val => val).length;
						}
					},
				});
			},
			/* 跳转 */
			/* 是否展示消费券 */
			getMemberHerd() {
				this.$api.sendRequest({
					url: "/expansion/api/Record/getMemberHerd",
					success: (res) => {
						if (res.code == 0 && res.data) {
							this.headInfo = res.data;
						}
					},
				});
			},
			getAuditConfig() {
				this.$api.sendRequest({
					url: "/api/config/getAuditConfig",
					success: (res) => {
						if (res.code >= 0 && res.data) {
							this.is_audit = res.data.is_audit;
						}
					},
				});
			},
			// 签到是否开启
			async getSignState() {
				var res = await this.$api.sendRequest({
					url: "/api/membersignin/getSignStatus",
					async: false,
				});
				if (res.code == 0) {
					this.signState = res.data.is_use;
				}
			},
			async getDefaultInfo() {
				var res = await this.$api.sendRequest({
					url: "/api/diyview/memberindex",
					async: false,
				});
				if (res.code == 0) {
					this.defaultInfo.topStyle = res.data.topStyle;
					this.defaultInfo.bgColor = res.data.bgColor;
					this.defaultInfo.textColor = res.data.textColor;
					this.defaultInfo.bgImg = res.data.bgImg;
					this.defaultInfo.menuStyle = res.data.menuStyle;
					this.defaultInfo.menuList = res.data.menuList;
					this.defaultInfo.insertGap = res.data.insertGap;
					this.defaultInfo.level = res.data.level || 1;

					this.menuList = res.data.menuList;
					this.manageList = res.data.manageList;
					this.toolList = res.data.toolList;
				}
			},
			redirectToLink(url) {

				let link = ''
				if (url ==
					'/otherpages/webview/webview?link=https%3A%2F%2Ftest.cheerva.com%2Fmshop%2Fpages%2Fapply%2Findex%3Fback%3Dpages.apply.audit'
				) {
					link = url.replace('https%3A%2F%2Ftest.cheerva.com', 'http%3A%2F%2Flocalhost%3A8081')
				} else {
					link = url
				}
				if (!uni.getStorageSync("token")) {
					this.$refs.login.open(link);
				} else {
					if (link.search("web.wjbdt.cn") != -1) {
						link =
							link + encodeURIComponent("?token=" + uni.getStorageSync("token"));
					} else {
						if (link.search("otherpages/webview/webview") != -1) {
							if (link.search("%3F") != -1) {
								link =
									link +
									encodeURIComponent("&member_id=" + this.memberInfo.member_id);
							} else {
								link =
									link +
									encodeURIComponent("?member_id=" + this.memberInfo.member_id);
							}
							console.log(decodeURIComponent(link));
						}
					}
					this.$util.redirectTo(link);
				}
			},
			initInfo() {
				this.token = "";
				this.memberInfo = {
					balance: "0.00",
					balance_money: "0.00",
					point: 0,
					account5: 0,
					x_value: 0,
				};

				this.couponNum = 0;
				this.orderNum = {
					waitPay: 0, //待付款
					readyDelivery: 0, //待发货
					waitDelivery: 0, //待收货
					waitEvaluate: 0, // 待评价
					refunding: 0, // 退款中
				};
				this.authInfo = {
					is_verifier: false,
				};
				this.headInfo = {
					platform: 0, //平台加速
					accelerate: 0, //加速补贴,
					total: 0,
				};
				uni.stopPullDownRefresh();
			},
			// 获取会员基础信息
			async getMemberInfo() {
				let res = await this.$api.sendRequest({
					url: "/api/member/info",
					async: false,
				});
				if (res.code >= 0 && res.data) {
					this.token = uni.getStorageSync("token");
					this.memberInfo = res.data;
					uni.setStorageSync("userInfo", this.memberInfo);
				} else {
					this.token = "";
					this.initInfo();
					uni.removeStorageSync("token");
					uni.removeStorageSync("userInfo");
				}
				uni.stopPullDownRefresh();
			},
			// 下拉刷新
			onPullDownRefresh() {
				if (uni.getStorageSync("token")) this.getMemberInfo();
				else this.initInfo();
			},
			// 信息数量
			getPerMessageCount() {
				this.$api.sendRequest({
					url: "/sitemessage/api/sitemessage/getpermessagecount",
					data: {
						// site_id:
						// sub_type:
					},
					success: (res) => {
						if (res.code == 0) {
							this.perMessageCount = res.data.count;
						}
					},
				});
			},
			// 订单数量
			getOrderNum() {
				this.$api.sendRequest({
					url: "/api/order/num",
					data: {
						order_status: "waitpay,waitsend,waitconfirm,waitrate,refunding",
					},
					success: (res) => {
						if (res.code == 0) {
							this.orderNum.waitPay = res.data.waitpay;
							this.orderNum.readyDelivery = res.data.waitsend;
							this.orderNum.waitDelivery = res.data.waitconfirm;
							this.orderNum.waitEvaluate = res.data.waitrate;
							this.orderNum.refunding = res.data.refunding;
						}
						if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
					},
				});
			},
			// 优惠券数量
			getCouponNum() {
				this.$api.sendRequest({
					url: "/api/member/couponnum",
					success: (res) => {
						if (res.code == 0) {
							this.couponNum = res.data;
						}
					},
				});
			},
			checkIsVerifier() {
				this.$api.sendRequest({
					url: "/api/verify/checkisverifier",
					success: (res) => {
						this.authInfo.is_verifier = res.code == 0;
						uni.setStorageSync("authInfo", this.authInfo);
						this.$forceUpdate();
					},
				});
			},
			jumpLevel() {
				if (uni.getStorageSync("token")) {
					this.$util.redirectTo("/otherpages/member/level/level");
				} else {
					this.$refs.login.open("/pages/member/index/index");
				}
			},
			/**
			 * 获取消费券提现配置
			 */
			getWithdrawConfig() {
				this.$api.sendRequest({
					url: "/api/memberwithdraw/config",
					success: (res) => {
						if (res.code >= 0 && res.data) {
							this.withdrawConfig = res.data;
							this.$forceUpdate();
						}
					},
				});
			},
			/**
			 * 获取分销基本配置
			 */
			getFenxiaoBasicsConfig() {
				this.$api.sendRequest({
					url: "/fenxiao/api/config/basics",
					success: (res) => {
						if (res.code >= 0) {
							this.fenxiaoBasicsConfig = res.data;
							this.$forceUpdate();
						}
					},
				});
			},
			getEvaluateConfig() {
				this.$api.sendRequest({
					url: "/api/goodsevaluate/config",
					success: (res) => {
						if (res.code == 0) {
							var data = res.data;
							this.evaluateConfig = data;
						}
					},
				});
			},
			menuIsShow(data) {
				switch (data.tag) {
					case "fenxiao":
						return (
							this.addonIsExit.fenxiao == 1 &&
							this.fenxiaoBasicsConfig &&
							this.fenxiaoBasicsConfig.level > 0
						);
						break;
					case "memberwithdraw":
						return this.withdrawConfig && this.withdrawConfig.is_use == 1;
						break;
					case "membersignin":
						return this.signState == 1;
						break;
					case "verifier":
						return this.authInfo.is_verifier;
						break;
					default:
						return true;
				}
			},
		},
	};
</script>

<style lang="scss">
	@import "../public/css/index.scss";

	/deep/.uni-scroll-view::-webkit-scrollbar {
		/* 隐藏滚动条，但依旧具备可以滚动的功能 */
		display: none;
	}
</style>
<style scoped>
	/deep/ .reward-popup .uni-popup__wrapper-box {
		background: none !important;
		max-width: unset !important;
		max-height: unset !important;
	}
</style>